import request from '@/utils/request'



// 新增量检具
export function addGaugeMessage(data) {
  return request({
    url: '/ny-iqc/gaugeMessage',
    method: 'post',
    data: data
  })
}


// 修改量检具
export function modGaugeMessage(data) {
  return request({
    url: '/ny-iqc/gaugeMessage',
    method: 'put',
    data: data
  })
}

// 量检具列表
export function listGaugeMessage(data) {
  return request({
    url: '/ny-iqc/gaugeMessage/list',
    method: 'get',
    params: data
  })
}
// 量检具Tree结构查询
export function treeListGaugeMessage(data) {
  return request({
    url: '/qcmasterdata/materialMin/treeList',
    method: 'post',
    data
  })
}

// 获取量检具详细信息
export function getGaugeMessage(id) {
  return request({
    url: '/ny-iqc/gaugeMessage/' +id,
    method: 'get',
  })
}


// 删除量检具
export function delGaugeMessage(id) {
  return request({
    url: '/ny-iqc/gaugeMessage/' +id,
    method: 'delete',
  })
}

// 导出量检具列表
export function exportGaugeMessage() {
  return request({
    url: '/ny-iqc/gaugeMessage/export' ,
    method: 'get',
  })
}

// 查询所有数据
export function listAllGaugeMessage(params) {
  return request({
    url: '/ny-iqc/gaugeMessage/listAll',
    method: 'get',
    params:params
  })
}

// 导入量检具信息列表
export function importGaugeMessage(data) {
  return request({
    url: '/ny-iqc/gaugeMessage/import',
    method: 'post',
    data
  })
}

// 导入量检具管理
export function importGaugeMana(data) {
    return request({
      url: '/ny-iqc/gauge/import',
      method: 'post',
      data
    })
  }
